﻿using AutoMapper;
using HealthcareSystem.API.Write.Application.Command;
using HealthcareSystem.API.Write.Application.Command.ChronicDisease;
using HealthcareSystem.API.Write.Application.Command.ChronicSignCommad;
using HealthcareSystem.API.Write.Application.Command.ElementCommand;
using HealthcareSystem.API.Write.Application.Command.FollowUp.FollowUpCommand;
using HealthcareSystem.API.Write.APPLication.Commad.ChronicSignCommad;
using HealthcareSystem.API.Write.APPLication.Commad.KnowledgeCommand;
using HealthcareSystem.Domain;
using HealthcareSystem.Domain.BasicSettings.Element_classification;
using HealthcareSystem.Domain.ChronicDiseaseManagement;
using HealthcareSystem.Domain.BasicSettings.FormManagement;
using HealthcareSystem.Domain.Knowleges;
using HealthcareSystem.API.Write.Application.Command.Disease;
using HealthcareSystem.Domain.BasicSettings.Diseasemanagement;

namespace HealthcareSystem.API.Write
{
    public class AutoMappingProfiltes : Profile
    {
        public AutoMappingProfiltes()
        {
            //平台框架
            CreateMap<RegisterCommand, Login>().ReverseMap();
            //慢病签约信息
            CreateMap<AddCSignCommad, ChronicSign>().ReverseMap();
            //我的知识信息
            CreateMap<AddknowledgeCommand,Knowledge>().ReverseMap();
            //我的元素添加
            CreateMap<AddElementCommanad, Managementelements>().ReverseMap();
            //我的元素修改
            CreateMap<PutElementCommand, Managementelements>().ReverseMap();
            //表单富文本添加
            CreateMap<AddFollowUpCommand, Textfield>().ReverseMap();
            //病列添加
            CreateMap<AddDiseaseCommand, Diseasemanage>().ReverseMap();
            //病列编辑
            CreateMap<PutDiseaseCommand, Diseasemanage>().ReverseMap();
            //病种添加
            CreateMap<AddListofdiseasesCommand, Listofdiseases>().ReverseMap();


            //添加健康宣教
            CreateMap<HealthEducationAddCommand, HealthEducation>().ReverseMap();
            //添加健康报告
            CreateMap<HealthReportAddCommand, HealthReport>().ReverseMap();
            //删除健康报告
            CreateMap<HealthReportDeleteCommand, HealthReport>().ReverseMap();
            //删除健康宣教
            CreateMap<HealthEducationDeleteCommand, HealthEducation>().ReverseMap();

            //添加诊断信息
            CreateMap<DiagnosisAddCommand,DiagnosisInformation>().ReverseMap();
            //添加饮食方案
            CreateMap<DietAddCommand,Dietplan>().ReverseMap();

            //删除慢病签约
            CreateMap<DelCSignCommad, ChronicSign>().ReverseMap();
            CreateMap<FilingCommand,Record>().ReverseMap();  
            CreateMap<FilingCommand, Physique>().ReverseMap();
            CreateMap<FilingCommand, Behavior>().ReverseMap();



        }
    }
}
